home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxcrc32.zip
/
CRC of String.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-01-24
|
1KB
|
41 lines
/* RxCRC32-Test: Calculate CRC-32 of Entered String *
* *
* (C) Mads Orbesen Troest & SIRIUS Cybernetics */
/* Load External RxCRC32 Routines: */
CALL RxFuncAdd "RxCRC32Ver", "RXCRC32", "RXCRC32VER"
CALL RxFuncAdd "RxCRC32Init", "RXCRC32", "RXCRC32INIT"
CALL RxFuncAdd "RxCRC32Done", "RXCRC32", "RXCRC32DONE"
CALL RxFuncAdd "RxCRC32Update", "RXCRC32", "RXCRC32UPDATE"
/* Do some initial chitchat: */
SAY ""
SAY "RxCRC32-Test: Calculate CRC-32 of Entered String, utilising:"
SAY RxCRC32Ver() /* Report Version Information */
SAY ""
/* Initialize the variable CRC for running CRC-32 calculation: */
CRC = RxCRC32Init()
/* Get the buffer to calculate: */
SAY "Whack in some line that you want me to calculate the CRC-32 of:"
PARSE PULL Buffer
/* Calculate CRC-32 of Buffer: */
CRC = RxCRC32Update( CRC, Buffer )
/* Complete Calculation: */
CRC = RxCRC32Done( CRC )
/* Report the result: */
SAY ""
SAY "Well, then... CRC-32 : "CRC" (HEX) - Thanks for using RxCRC32 :-)"